<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const toPage = (path) => {
  router.push({path})
}
</script>

<template>
  <div class="tags">
    <div class="tags-item" @click="toPage('/newSongs')">新歌速递</div>
    <div class="tags-item">
      <span>新碟上架</span>
      <img class="tags-item-image animate__animated animate__rubberBand" src="../assets/yinfu.png" alt=""/>
    </div>
  </div>
</template>

<style scoped lang="scss">
@mixin boxCenter {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tags {
  width: 100%;
  color: #000000;
  display: flex;
  box-sizing: border-box;
  padding: 0 24px;
  //margin: 8px 0;
  .tags-item {
    font-size: 16px;
    letter-spacing: 1px;
    position: relative;
    cursor: pointer;
    &:last-child {
      margin-left: 24px;
      span {
        font-weight: bold;
      }
    }
  }
}
.tags-item-image {
  width: 20px;
  height: 26px;
  position: absolute;
  right: -14px;
  top: 6px;
}
</style>
